import request from "@/utils/request.js";

//用户注册
export const stuRegister = (data) => request.post("/student/register", data);

//获取学生信息
export const getStuInfo = () => request.get("/student/stuInfo");

//更新学生信息
export const updateStuInfo = (data) => request.put("/student/updateStuInfo", data);

//更新求职状态
export const updateStatus = (data) => request.put("/student/updateStatus", data);

//更新技巧
export const updateSkill = (data) => request.put("/student/updateSkill", data);

//更新期望职位
export const updateDesiredJob = (data) => request.put("/student/updateDesiredJob", data);

//更新工作经历
export const updateWorkExperience = (data) => request.put("/student/updateWorkExperience", data);

//更新项目经历
export const updateProjectExperience = (data) => request.put("/student/updateProjectExperience", data);

//更新教育经历
export const updateEducationExperience = (data) => request.put("/student/updateEducationExperience", data);

//添加期望职位
export const addDesiredJob = (data) => request.put("/student/addDesiredJob", data);

//添加教育经历
export const addEducationExperience = (data) => request.put("/student/addEducationExperience", data);

//添加工作经历
export const addWorkExperience = (data) => request.put("/student/addWorkExperience", data);

//添加项目经历
export const addProjectExperience = (data) => request.put("/student/addProjectExperience", data);

//删除期望职位
export const deleteDesiredJob = (data) => request.delete("/student/deleteDesiredJob", {data} );

//删除教育经历
export const deleteEducationExperience = (data) => request.delete("student/deleteEducationExperience", {data});

//删除工作经历
export const deleteWorkExperience = (data) => request.delete("/student/deleteWorkExperience", {data});

//删除项目经历
export const deleteProjectExperience = (data) => request.delete("/student/deleteProjectExperience", {data});

//上传图片
export const uploadPicture = (data) => request.post("/student/uploadImg", data);

//根据学生id获取信息
export const getStuInfoByStuId = (params) => request.get("/student/stuInfoByStudentId", {params});

//获取学生审批列表
export const getApplication = (params) => request.get("/applications/getApplication", {params});